package com.wuyou.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author yz
 * @since 2022-09-30
 */
@TableName("tb_house")
public class TbHouse implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 房屋id
     */
    @TableId(value = "house_id", type = IdType.AUTO)
    private Long houseId;

    /**
     * 标题
     */
    private String title;

    /**
     * 户型(0 : 一居 , 1 : 二居 , 2 : 三居 , 3 : 四居及以上)
     */
    private Integer houseType;

    /**
     * 租金
     */
    private BigDecimal rent;

    /**
     * 支付方式(0支付宝1微信2现金)
     */
    private Integer payType;

    /**
     * 图片
     */
    private String houseImage;

    /**
     * 房东
     */
    @TableField("host_Id")
    private String hostId;

    /**
     * 上线时间
     */
    private Date startTime;

    /**
     * 咨询量
     */
    private Integer consultNum;

    /**
     * 看房量
     */
    private Integer visitNum;

    /**
     * 标签id
     */
    private Long tagId;

    /**
     * 状态(0未出租1出租)
     */
    private Integer status;

    /**
     * 备用字段1
     */
    private String audit;

    /**
     * 备用字段2
     */
    private String spare2;

    public Long getHouseId() {
        return houseId;
    }

    public void setHouseId(Long houseId) {
        this.houseId = houseId;
    }
    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }
    public Integer getHouseType() {
        return houseType;
    }

    public void setHouseType(Integer houseType) {
        this.houseType = houseType;
    }
    public BigDecimal getRent() {
        return rent;
    }

    public void setRent(BigDecimal rent) {
        this.rent = rent;
    }
    public Integer getPayType() {
        return payType;
    }

    public void setPayType(Integer payType) {
        this.payType = payType;
    }
    public String getHouseImage() {
        return houseImage;
    }

    public void setHouseImage(String houseImage) {
        this.houseImage = houseImage;
    }
    public String getHostId() {
        return hostId;
    }

    public void setHostId(String hostId) {
        this.hostId = hostId;
    }
    public Date getStartTime() {
        return startTime;
    }

    public void setStartTime(Date startTime) {
        this.startTime = startTime;
    }
    public Integer getConsultNum() {
        return consultNum;
    }

    public void setConsultNum(Integer consultNum) {
        this.consultNum = consultNum;
    }
    public Integer getVisitNum() {
        return visitNum;
    }

    public void setVisitNum(Integer visitNum) {
        this.visitNum = visitNum;
    }
    public Long getTagId() {
        return tagId;
    }

    public void setTagId(Long tagId) {
        this.tagId = tagId;
    }
    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }
    public String getAudit() {
        return audit;
    }

    public void setAudit(String audit) {
        this.audit = audit;
    }
    public String getSpare2() {
        return spare2;
    }

    public void setSpare2(String spare2) {
        this.spare2 = spare2;
    }

    @Override
    public String toString() {
        return "TbHouse{" +
            "houseId=" + houseId +
            ", title=" + title +
            ", houseType=" + houseType +
            ", rent=" + rent +
            ", payType=" + payType +
            ", houseImage=" + houseImage +
            ", hostId=" + hostId +
            ", startTime=" + startTime +
            ", consultNum=" + consultNum +
            ", visitNum=" + visitNum +
            ", tagId=" + tagId +
            ", status=" + status +
            ", spare1=" + audit +
            ", spare2=" + spare2 +
        "}";
    }
}
